﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BugZillaCrawler.UI
{
    class DataAccess
    {
        DataClassesDataContext context = new DataClassesDataContext();
        private static DataAccess instance = new DataAccess();

        public static DataClassesDataContext Database
        {
            get
            {
                return instance.context;
            }
        }

        public DataAccess()
        {
            if (!context.DatabaseExists())
            {
                context.CreateDatabase();
            }
        }

    }
}
